Optimal. Leaf size=101 \[ \frac {2 (5 B-2 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{15 d}+\frac {2 a (5 B+7 C) \sin (c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 C \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.13, antiderivative size = 101, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, integrand size = 34, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.088, Rules used = {3023, 2751, 2646} \[ \frac {2 (5 B-2 C) \sin (c+d x) \sqrt {a \cos (c+d x)+a}}{15 d}+\frac {2 a (5 B+7 C) \sin (c+d x)}{15 d \sqrt {a \cos (c+d x)+a}}+\frac {2 C \sin (c+d x) (a \cos (c+d x)+a)^{3/2}}{5 a d} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2646
Rule 2751
Rule 3023
Rubi steps
\begin {align*} \int \sqrt {a+a \cos (c+d x)} \left (B \cos (c+d x)+C \cos ^2(c+d x)\right ) \, dx &=\frac {2 C (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{5 a d}+\frac {2 \int \sqrt {a+a \cos (c+d x)} \left (\frac {3 a C}{2}+\frac {1}{2} a (5 B-2 C) \cos (c+d x)\right ) \, dx}{5 a}\\ &=\frac {2 (5 B-2 C) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{15 d}+\frac {2 C (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{5 a d}+\frac {1}{15} (5 B+7 C) \int \sqrt {a+a \cos (c+d x)} \, dx\\ &=\frac {2 a (5 B+7 C) \sin (c+d x)}{15 d \sqrt {a+a \cos (c+d x)}}+\frac {2 (5 B-2 C) \sqrt {a+a \cos (c+d x)} \sin (c+d x)}{15 d}+\frac {2 C (a+a \cos (c+d x))^{3/2} \sin (c+d x)}{5 a d}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.25, size = 64, normalized size = 0.63 \[ \frac {\tan \left (\frac {1}{2} (c+d x)\right ) \sqrt {a (\cos (c+d x)+1)} (2 (5 B+4 C) \cos (c+d x)+20 B+3 C \cos (2 (c+d x))+19 C)}{15 d} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.40, size = 64, normalized size = 0.63 \[ \frac {2 \, {\left (3 \, C \cos \left (d x + c\right )^{2} + {\left (5 \, B + 4 \, C\right )} \cos \left (d x + c\right ) + 10 \, B + 8 \, C\right )} \sqrt {a \cos \left (d x + c\right ) + a} \sin \left (d x + c\right )}{15 \, {\left (d \cos \left (d x + c\right ) + d\right )}} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 1.10, size = 124, normalized size = 1.23 \[ \frac {1}{30} \, \sqrt {2} {\left (\frac {3 \, C \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right )}{d} + \frac {30 \, B \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d} + \frac {30 \, C \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )}{d} + \frac {5 \, {\left (2 \, B \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right ) + C \mathrm {sgn}\left (\cos \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )\right )} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right )}{d}\right )} \sqrt {a} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [A] time = 0.72, size = 83, normalized size = 0.82 \[ \frac {2 \cos \left (\frac {d x}{2}+\frac {c}{2}\right ) a \sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \left (12 C \left (\sin ^{4}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\left (-10 B -20 C \right ) \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+15 B +15 C \right ) \sqrt {2}}{15 \sqrt {a \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )}\, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.55, size = 88, normalized size = 0.87 \[ \frac {10 \, {\left (\sqrt {2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 3 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} B \sqrt {a} + {\left (3 \, \sqrt {2} \sin \left (\frac {5}{2} \, d x + \frac {5}{2} \, c\right ) + 5 \, \sqrt {2} \sin \left (\frac {3}{2} \, d x + \frac {3}{2} \, c\right ) + 30 \, \sqrt {2} \sin \left (\frac {1}{2} \, d x + \frac {1}{2} \, c\right )\right )} C \sqrt {a}}{30 \, d} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [F] time = 0.00, size = -1, normalized size = -0.01 \[ \int \left (C\,{\cos \left (c+d\,x\right )}^2+B\,\cos \left (c+d\,x\right )\right )\,\sqrt {a+a\,\cos \left (c+d\,x\right )} \,d x \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F] time = 0.00, size = 0, normalized size = 0.00 \[ \int \sqrt {a \left (\cos {\left (c + d x \right )} + 1\right )} \left (B + C \cos {\left (c + d x \right )}\right ) \cos {\left (c + d x \right )}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________